package com.yjhealth.libs.core.databinding;

import android.databinding.BindingAdapter;
import android.widget.EditText;

import com.yjhealth.libs.core.utils.EmojiFilter;


/**
 * Created on 2019/11/20 10:50
 *
 * @author cyf
 * @des :
 */

public class EditViewBindingAdapter {

    @BindingAdapter({"emoji_filter"})
    public static void filter(EditText view, boolean flag) {
        view.addTextChangedListener(new EmojiFilter(view));
    }

}
